package staticindex;

public class Stuins {
    public static void main(String[] args) {
        //利用这个Student这个javaBean去创造实例化对象
        Student.teacherName="guolanbo";
        Student s1=new Student();
        s1.setName("xm");
        s1.setAge(23);
        s1.setId(1);
        s1.setGender("男");
        s1.showAll();

        //s2
        Student s2=new Student();
        s2.setName("xm2");
        s2.setGender("女");
        s2.setId(2);
        s2.setAge(21);
        s2.showAll();
    }
}
